<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>五壮士车库</title>
  <script src="js/jquery-1.8.2.js"></script>
  <script src="layui/layui.js"></script>
  <link rel="stylesheet" href="layui/css/layui.css" media="all">
 
<body class="layui-layout-body">

<div class="layui-layout layui-layout-admin">
<div class="layui-header">
<div class="layui-logo">五壮士车库</div>
<!-- 头部区域（可配合layui已有的水平导航） -->
 <ul class="layui-nav layui-layout-left" lay-filter="">
  
  <li class="layui-nav-item "><a href="lbt.html">首页</a></li>
   <li class="layui-nav-item "><a href="gywm.html">关于我们</a></li>
  <li class="layui-nav-item "><a href="car.html">产品</a></li>
  <li class="layui-nav-item layui-this"><a href="xw.html">新闻</a></li>
  <li class="layui-nav-item "><a href="lxwm.html">联系我们</a></li>
</ul>

 </div>

</div>
<br>
<br>
<br>
<br>
<br>
<div class="layui-container"> 

<div class="layui-row">
</div>
</div>

  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card layadmin-serach-main">
         
          <div class="layui-card-body">
            
            <ul class="layadmin-serach-list layui-text" id="xwbox">
            
             
         
            
              
              
            </ul>
            <div id="LAY-template-search-page" style="text-align: center;"></div>
            
          </div>
        </div>
      </div>
    </div>
  </div>
  
  
 

<script>
$.ajax({
	url : "/wzsck/xwqtqueryservlet",//地址
	type : "get",//请求方式
	
		success : function(res) {
				var list= res.data;	
				for(var i=0;i<list.length;i++){
				
					$("#xwbox").append(
							"<li>"
							+" <div class='layui-serachlist-text'>"
							+"<div>"+list[i].time+"</div>"
							+"<h3><a href=''>"+list[i].name+"</a></h3>"
							+" <p>"+list[i].neirong +"</p>"
							+"<span>"+"<img src ='"+"/wzsck/"+list[i].imgurl+"' style='width: 80px;height: 80px;''>"+"</span>"
							+"</div>"
							+" </li>"	
					);
				}

			
	}
	})
</script>

</body>
</html>